using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
namespace Kunlun.Models
{
    [Table("Category")]
      public class Category
      {
         [Key]  
         [DisplayName("类型ID")] 
         public int ID { get; set; }
         [Required(ErrorMessage = "类型名称不能空")]  
         [DisplayName("类型名称")] 
         public string Cname { get; set; }
         [DisplayName("类型图片")] 
         public string Cimage { get; set; }
         [Required(ErrorMessage = "上一级ID不能空")]  
         [DisplayName("上一级ID")] 
         public int ParentID { get; set; }
         [DisplayName("类型等级")] 
         public int Sort { get; set; }
         [DisplayName("类型描述")] 
         public string Description { get; set; }
         [DisplayName("是否可用")] 
         public bool IsVisible { get; set; }
         [DisplayName("seo页面名称")] 
         public string SeoPageName { get; set; }
         [DisplayName("seo标题")] 
         public string SeoTitle { get; set; }
         [DisplayName("seo关键词")] 
         public string SeoKeyword { get; set; }
         [DisplayName("seo描述")] 
         public string SeoDescription { get; set; }
         [DisplayName("排序")] 
         public int Orders { get; set; }
         [DisplayName("创建时间")] 
         public DateTime BeginDate { get; set; }
         [DisplayName("最后修改时间")] 
         public DateTime LastUpdateTime { get; set; }
           
         } 
} 
